﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 当物体被破坏时，主角加分
/// </summary>
public class DeathReward : Reward {

    private void OnDestroy()
    {
        if(GameManager.Instance.text!=null)
        GetGrade();
    }
}
